class CreateAccessNodes < ActiveRecord::Migration
  def self.up
    create_table :access_nodes do |t|
      # Basic Dog Information
      t.string   "name"
      t.integer  "sys_uptime"
      t.integer  "sys_load"
      t.integer  "sys_memfree"
      t.integer  "wifidog_uptime"
      t.datetime "last_seen"
      t.float    "long"
      t.float    "lat"
      t.float    "ele"
      t.string   "redirect_url"
      t.string   "mac"
      t.integer  "user_id"
      t.boolean  "track_mac"
      t.string   "auth_mode"
      t.string   "remote_addr"
      t.boolean  "couponcode_required", :default => false
      t.float    "lng"
      t.string   "address"
      t.integer  "time_limit"
      t.integer  "quota"
      t.boolean  "is_batman", :default => false
      
      # BATMAN specific information
      t.string  "gateway_ip"
      t.boolean "gateway"
      t.string  "last_ip"
      t.string  "robin_ver"
      t.string  "batman_ver"
      t.string  "ssid"
      t.string  "pssid"
      t.integer "gw_qual"
      t.string  "routes"
      t.integer "hops"
      t.string  "nbs"
      t.string  "rank"
      
      t.timestamps
    end
  end

  def self.down
    drop_table :access_nodes
  end
end
